<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>算命网站 - 在线占卜</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="container">
        <header>
            <h1>🔮 在线算命</h1>
            <p>输入您的信息，获取今日运势</p>
        </header>
        
        <main>
            <form id="fortuneForm" class="fortune-form">
                <div class="form-group">
                    <label for="name">姓名</label>
                    <input type="text" id="name" name="name" required>
                    <span class="error-message" id="nameError"></span>
                </div>
                
                <div class="form-group">
                    <label for="birthDate">出生日期</label>
                    <input type="date" id="birthDate" name="birthDate" required>
                    <span class="error-message" id="birthDateError"></span>
                </div>
                
                <div class="form-group">
                    <label>性别</label>
                    <div class="radio-group">
                        <label class="radio-label">
                            <input type="radio" name="gender" value="male" required>
                            <span>男</span>
                        </label>
                        <label class="radio-label">
                            <input type="radio" name="gender" value="female" required>
                            <span>女</span>
                        </label>
                    </div>
                    <span class="error-message" id="genderError"></span>
                </div>
                
                <div class="form-group">
                    <label for="city">所在城市 <span class="optional">(可选)</span></label>
                    <input type="text" id="city" name="city" placeholder="如：北京、上海、广州">
                    <small class="form-hint">输入城市名获取当地天气运势，留空则使用当前位置</small>
                    <span class="error-message" id="cityError"></span>
                </div>
                
                <button type="submit" class="submit-btn">
                    <span class="btn-text">开始算命</span>
                </button>
            </form>
        </main>
    </div>
    
    <script src="script.js"></script>
</body>
</html>